<template>
  <div
    class="all"
    :style="{ height: screenHeight + 'px', width: screenWidth + 'px' }"
  >
    <Return txt="回访详情" style="background: #eeeeee"></Return>
    <div class="list">
      <div class="row">
        <span>初创:2020/8/1</span>
        <div class="row1">战败</div>
        <span>回访:2020/8/7</span>
      </div>
      <div class="lis" @click="kefumore">
        <img src="../../../assets/images/logo.png" alt="" />
        <div class="lis1">
          <span>崔总</span>
          <span>电话 123456887899</span>
        </div>
      </div>
      <div class="text"><span v-if="xiashow==0">描述</span>
          <van-icon v-if="xiashow==1" name="arrow-down" @click="xiashow=0" />
          <van-icon v-if="xiashow==0" name="arrow-up"  @click="xiashow=1" /></div>
    </div>
    <div class="time">上午 9:30</div>
    <div v-if="duxuanshow == false">
      <div class="messageleft">
        <van-checkbox v-model="checked" v-if="show2 == true"></van-checkbox>
        <span v-if="!show2"></span>
        <div class="messageleft1">
          <img
            @click="mineTap"
            class="messageleftimg1"
            src="../../../assets/images/logo.png"
            alt=""
          />
          <div class="messagerghtText" @click="show1 = true">我能多选</div>
        </div>
        <div class="position" v-if="show1 == true">
          <span @click="show1 = false">复制</span>
          <span @click="morechoosetap">多选</span>
        </div>
      </div>
      <div class="messageright">
        <van-checkbox v-model="checked1" v-if="show2 == true"></van-checkbox>
        <div class="messageleftText">
          你好，如果你有任何建议或投诉何建议或投诉
        </div>
      </div>
    </div>
    <div class="button" v-if="show2 == false">
      <input type="text" class="butonInput" />
      <div class="icon1">
        <van-icon name="smile-o" />
      </div>
    </div>
    <div class="button1" v-if="show2" @click="deletetap">
      <div class="icon1">
        <van-icon name="delete-o" />
      </div>
    </div>
  </div>
</template>
<script>
import Return from "../../../components/return";
export default {
  components: {
    Return,
  },
  data() {
    return {
      screenWidth:
        window.innerWidth ||
        document.documentElement.clientWidth ||
        document.body.clientWidth,
      screenHeight:
        window.innerHeight ||
        document.documentElement.clientHeight ||
        document.body.clientHeight,
      isshow: true,
      show1: false,
      show2: false,
      checked: false,
      checked1: false,
      duxuanshow: false,
      xiashow:1
    };
  },
  methods: {
    deletetap(){
    this.duxuanshow = true
    this.show2=false
    console.log(this.duxuanshow)
    },
    returnTap() {
      this.$router.go(-1);
    },
    nextTap() {
      this.$router.push("/messageall");
    },
    peoplemoreTap() {
      this.$router.push("/head");
    },
    mineTap() {
      this.$router.push("/headmine");
    },
    adviceTap() {
      this.$router.push("/msgadvice");
    },
    kefumore() {
      this.$router.push("/huifangmine");
    },
    morechoosetap() {
      this.show1 = false;
      this.show2 = true;
    },
  },
};
</script>
<style scoped>
.all {
  background: #eeeeee;
}
.top {
  height: 60px;
  width: 90%;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  line-height: 60px;
  position: relative;
  background: #eeeeee;
}
.button {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  background: #e1e0e1;
  border-top: 1px solid #ccc;
  background: #fff;
}
.butonInput {
  width: 82.5%;
  height: 60px;
  margin-left: 2.5%;
  border: none;
}
.buttonall {
  position: fixed;
  bottom: 0;
  left: 0;
  height: auto;
  width: 100%;

  border-top: 1px solid #ccc;
}
.button1 {
  position: fixed;
  bottom: 0;
  left: 0;
  height: 60px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e1e0e1;
  border-top: 1px solid #ccc;
  background: #fff;
}
.icon1 {
  width: 15%;
  text-align: center;
  font-size: 28px;
}
.button_input {
  width: 52%;
  height: 40px;
  border: none;
  border-radius: 5px;
}
.messageleft {
  height: auto;
  display: flex;
  width: 94%;
  margin-left: 3%;
  justify-content: space-between;
  margin-top: 10px;
  position: relative;
}
.messageleft1 {
  display: flex;
  flex-direction: row-reverse;
  justify-content: right;
}
.position {
  width: 100px;
  height: 35px;
  position: absolute;
  top: -30px;
  right: 15%;
  background: url("../../../assets/images/bg.png");
  background-size: 100%;
  color: white;
  display: flex;
  /* align-items: center; */
  justify-content: space-around;
}
.position span {
  margin-top: 3px;
}
.messageright {
  height: auto;
  display: flex;
  width: 84%;
  margin-left: 3%;
  justify-content: right;
  margin-top: 10px;
}
.messageright .messageleftimg2 {
  margin-left: 10px;
}
.messageleftimg2 {
  width: auto;
  height: 100px;
  border-radius: 5px;
  margin-right: 10px;
}
.messageleftimg1 {
  width: 50px;
  height: 50px;
  border-radius: 5px;
}
.messagerghtText {
  height: 40px;
  background: #fff;
  line-height: 40px;
  border-radius: 5px;
  padding: 0 10px;
  margin-right: 10px;
  margin-top: 5px;
  background: #98ea69;
}
.messageleftText {
  height: auto;
  background: #fff;
  line-height: 30px;
  border-radius: 5px;
  padding: 0 10px;
  margin-left: 10px;
  margin-top: 3px;
}
.time {
  font-size: 15px;
  text-align: center;
  margin: 10px 0;
  color: #b5b5b5;
}
.buttonText {
  width: 88%;
  text-align: center;
  font-size: 22px;
  height: 40px;
  line-height: 40px;
  border-left: 1px solid #d3d3d3;
}
.buList {
  height: 300px;
  width: 100%;
  background: #f5f5f5;
  display: flex;
  flex-wrap: wrap;
}
.buList1 {
  width: 25%;
  height: 150px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}
.buListicon {
  width: 80px;
  height: 80px;
  background: #ffffff;
  text-align: center;
  align-items: center;
  font-size: 30px;
  line-height: 80px;
}
.list {
  background: #fff;
}
.row {
  margin: 10px 10%;
  width: 80%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.row span {
  color: #cccccc;
}
.row1 {
  padding: 5px 15px;
  background: #eee;
  color: #999;
  border-radius: 5px;
}
.lis {
  margin: 10px 10%;
  height: 80px;
  width: 80%;
  display: flex;
  align-items: center;
}
.lis img {
  width: 60px;
}
.lis1 {
  display: flex;
  flex-direction: column;
  margin-left: 10px;
  font-weight: bold;
}
.text {
  height: 35px;
  width: 100%;
  line-height: 35px;
  text-align: center;
  border-top: 1px solid #eee;
  border-bottom: 1px solid #eee;
}
</style>